package com.aaa.common.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 培训班老师
 * </p>
 *
 * @author wang
 * @since 2020-07-29
 */
@TableName("tb_trainer")
public class TbTrainer extends Model<TbTrainer> {

    private static final long serialVersionUID = 1L;

    /**
     * 培训师id
     */
    @TableId(value = "tb_trainer_id", type = IdType.AUTO)
    private Integer tbTrainerId;
    /**
     * 培训师名称
     */
    @TableField("tb_trainer_name")
    private String tbTrainerName;
    /**
     * 教授课程
     */
    @TableField("tb_course_id")
    private Integer tbCourseId;

    /**
     * 教授课程
     */
    @TableField("status")
    private Integer status;


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getTbTrainerId() {
        return tbTrainerId;
    }

    public void setTbTrainerId(Integer tbTrainerId) {
        this.tbTrainerId = tbTrainerId;
    }

    public String getTbTrainerName() {
        return tbTrainerName;
    }

    public void setTbTrainerName(String tbTrainerName) {
        this.tbTrainerName = tbTrainerName;
    }

    public Integer getTbCourseId() {
        return tbCourseId;
    }

    public void setTbCourseId(Integer tbCourseId) {
        this.tbCourseId = tbCourseId;
    }

    @Override
    protected Serializable pkVal() {
        return this.tbTrainerId;
    }

    @Override
    public String toString() {
        return "TbTrainer{" +
        "tbTrainerId=" + tbTrainerId +
        ", tbTrainerName=" + tbTrainerName +
        ", tbCourseId=" + tbCourseId +
                ", status=" + status +
        "}";
    }
}
